﻿using StarryEdge.Core.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StarryEdge.Core.Parameter
{
    public interface IUIRoleManage
    {
        bool Save();

        void AddUIRole(UIRoleModel uIRoleModel);
        void AddRole(UIRoleModel uIRoleModel, UIRoleItemModel uIRoleItem);

        void DeleteRole(UIRoleModel uIRoleModel, Guid uIRoleId);

        UIRoleModel GetUIRoleModel(Func<UIRoleModel, bool> func);

        IEnumerable<UIRoleModel> GetUIRoleModels(Func<UIRoleModel, bool> func);
    }
}
